.drawer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  width: min(720px, 94vw);
  max-height: 70vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.32s ease, opacity 0.24s ease;
  opacity: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  z-index: 1250;
}

.drawer.is-active {
  transform: translate(-50%, 0);
  opacity: 1;
}

.drawer__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__title {
  font-weight: 700;
  color: #1c2c47;
}

.drawer__body {
  padding: 12px 14px 16px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.drawer__body--grid {
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
}

.drawer__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(247, 249, 253, 0.92);
  color: #23324c;
  transition: all 0.2s ease;
  text-align: center;
}

.drawer__item img {
  width: 18px;
  height: 18px;
}

.drawer__item:hover {
  border-color: rgba(31, 111, 235, 0.35);
  background: rgba(232, 241, 255, 0.95);
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.18);
}

.drawer__item-title {
  font-weight: 700;
  font-size: 14px;
  color: #1c2c47;
}

.drawer__item-desc {
  font-size: 12px;
  color: var(--muted);
}

.sheet-overlay {
  position: fixed;
  flex-direction: column;
  inset: 0;
  background: rgba(15, 25, 45, 0.32);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1400;
}

.sheet-overlay.is-active {
  display: flex;
}

.sheet {
  width: min(520px, 92vw);
  max-height: 80vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.sheet__header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet__title {
  font-weight: 700;
  color: #1c2c47;
}

.sheet__body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.sheet__item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--border-dashed);
  background: rgba(246, 248, 253, 0.9);
  color: #23324c;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f5f7fb;
  color: #41506c;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(233, 241, 255, 0.9);
  color: var(--accent-strong);
  border-color: rgba(31, 111, 235, 0.35);
}
